@model List<Student>
<div>
    <a asp-action="Add">增加</a>
    <form asp-action="Index" method="get">
        <label><input name="KeyWord" placeholder="请输入关键词"></label>
        <input type="submit" value="查询">
    </form>
</div>
<table>
    <thead>
        <th>Id</th>
        <th>Name</th>
        <th>Sex</th>
        <th>Age</th>
        <th>操作</th>
    </thead>
    <tbody>
       @foreach(var item in Model)
       {
        <tr>
            <td>@item.Id</td>
            <td>@item.Name</td>
            <td>@item.Sex</td>
            <td>@item.Age</td>
            <td>
                <a asp-action="Edit" asp-route-id="@item.Id">修改</a>
                <a asp-action="Delete" asp-route-id="@item.Id">删除</a>
            </td>
            
        </tr>
       }
    </tbody>
</table>